package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;
import com.fz.us.admin.dict.entity.DictItem;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by dzw on 2018/3/13.
 * 根据街道下的居民区系统字典
 */
@Entity
@Table(name = "dj_dict_resident")
public class Resident extends BaseFlowEntity {
    private static final long serialVersionUID = 7899007494782643719L;

    /**
     * 父及街道
     */
    private DictItem street;

    @ManyToOne(fetch = FetchType.LAZY)
    public DictItem getStreet() {
        return street;
    }

    public void setStreet(DictItem street) {
        this.street = street;
    }
}
